using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace ReminderApp.ControlLibrary
{
    public partial class ucTimeScale : UserControl
    {
        public ucTimeScale()
        {
            InitializeComponent();
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            ReminderAction ra = new ReminderAction();
            ra.SaveTimeScale(txtFrom.Text, txtTo.Text, txtInterval.Text);
        }

        private void ucTimeScale_Load(object sender, EventArgs e)
        {
            string from, to, intervalTemp;
            bool startWithWindow;

            //Get Time Scale
            ReminderAction ra = new ReminderAction();

            ra.GetTimeScale(out from, out to, out intervalTemp, out startWithWindow);

            txtFrom.Text = from;
            txtTo.Text = to;
            txtInterval.Text = intervalTemp;
        }
    }
}
